-- GENERATED SPELL FOR [Mistress Nagmara] --


function spell0_9500(pUnit, Event) --@Nagmara\'s Love Potion,n/a--
pUnit:FullCastSpellOnTarget(14928,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9500', 1000, 1)
end

function spell1_9500(pUnit, Event) --@Nagmara\'s Vanish,Self--
pUnit:FullCastSpellOnTarget(15341,pUnit)
pUnit:RegisterEvent('Sorts_9500', 623, 1)
end

function Sorts_9500(pUnit, Event)
local choix_sorts_9500 = math.random(0, 1)
if choix_sorts_9500 == 0 then
pUnit:RegisterEvent('spell0_9500', 1, 1)
end
if choix_sorts_9500 == 1 then
pUnit:RegisterEvent('spell1_9500', 1, 1)
end
end

function mob9500_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9500', math.random(1500, 3000), 1)
end

function mob9500_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9500_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9500_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9500, 1, 'mob9500_Action')
RegisterUnitEvent(9500, 2, 'mob9500_Leave')
RegisterUnitEvent(9500, 3, 'mob9500_Kill')
RegisterUnitEvent(9500, 4, 'mob9500_Die')
